/*
 * Project Name: tennis
 * $Id:  UserService.java 2016-05-13 15:26:42 $
 */

package org.aceor.tennis.service;

import com.google.common.base.Optional;
import org.aceor.tennis.common.domain.BaseDomain;
import org.aceor.tennis.common.domain.User;
import org.aceor.tennis.common.exception.BusinessRuntimeException;

public interface IUserService<T extends BaseDomain> extends IBaseService<T>{

    Optional<User> login(User user) throws BusinessRuntimeException;

    Optional<User> register(User user) throws BusinessRuntimeException;

}
